﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace ContractSingTowerMall
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IEventService" in both code and config file together.
    [ServiceContract]
    public interface IEventService
    {
        [OperationContract]
        EventDetailList GetEventDetails(DateTime fromDate, DateTime toDate);

    }

    [DataContract]
    public class EventDetail
    {
        [DataMember]
        public DateTime EventStartDateTime { get; set; }
        [DataMember]
        public DateTime EventEndDateTime { get; set; }
        [DataMember]
        public String CompanyName { get; set; }
        [DataMember]
        public String EventTitle { get; set; }
        [DataMember]
        public String EventDescription { get; set; }
    }

    [CollectionDataContract]
    public class EventDetailList:List<EventDetail>
    {
        
    }

  
}
